<?php
/*
Template Name: author
*/
?>
<?php get_header(); 
        global $blog_id;
        $email_admin=get_bloginfo('admin_email');
        $author=get_user_by('email',$email_admin);
	$id_author = $author->data->ID;
	$author=$author->data->display_name;	
?>
<div class="cabezote_blogs">
<h2><a href="<? echo site_url();?>" title="Blogs Caracoltv.com">
BLOGS</a>
</h2>
</div>
<?php /*GOLCARACOL if ($seccion[0]->image=='gol'){
	echo '<div class="title_blog">
<a href="'.$blog_url.'" title="Blogs Caracoltv.com">'. get_bloginfo('name').'</a></div>';	
}*/
?>
	<div class="bloque_izq" role="main">
	
		<div class="cabezote">
        <a href="<? echo site_url();?>" title="<? echo  get_bloginfo('name'); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/<?php echo $blog_id; ?>.jpg" height="91px"></a>
        </div>
		<div class="despliegue_perfil">
			<div class="despliegue_perfil_avatar">
				<?php echo userphoto__get_userphoto($id_author,USERPHOTO_FULL_SIZE,'','',array('style' => 'width:200px; height:200px; float: left;'),'/wp-content/themes/elespectador/images/avatar_default_blogs_ee.jpg'); ?>
			</div>
            <h2><span>
<img src="<?php echo get_template_directory_uri(); ?>/images/perfil_detalle.gif"/>
</span> <?php echo $author;?></h2>
			<p>
				<?php echo stripcslashes(nl2br(the_author_meta( 'description', $id_author)));  ?>
			</p>
            <div class="clear"></div>
			<div class="post_bloger">
				<div class="relacionados" style="border-top: medium none;">
					<div class="titulo">
						<h2>&Uacute;ltimas publicaciones</h2>
                        </div>
						<?php query_posts('author='.$id_author.'&order=DESC&posts_per_page=10');?>
						<div class="enlaces_blog">
						     <ul>
                                
                                 <?php   if ( have_posts() ) : while ( have_posts() ) : the_post();
echo '<li><strong>';
the_time('d M Y');
echo '</strong>&nbsp;-&nbsp;<span><a href="';
the_permalink();
echo '" title="';
the_title_attribute();
echo '">';
the_title();
echo '</a></span></li>';
echo "</li>";
endwhile;
endif;

//Reset Query
wp_reset_query();
                                ?>
                               </ul>
						</div>	   
					</div>

			</div>	
		</div>
		
		<div class="clear"></div>
	</div>
<div class="bloque_der"><?php get_sidebar();?></div>
</div>
<?php get_footer(); ?>
